{/* LAYOUT模板 */}
<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}	
<css href="__THEMES__/css/common.css"/>
<css href="__THEMES__/css/user.css" />
<css href="__PUBLIC__/css/jquery-ui.css" />
<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
{/* import js,css */}
<include file="User:l_user_nav"/>

<!--个人中心服务-->
<!--用户中心导航-->
<style>
.w20{width:20%;}.w79{width:79%;}.uc-box{margin-left: 20px;}.xm-line-box .box-hd .title{margin: 0;font-size: 18px;font-weight: 400;line-height: 50px;color: #333;text-align:left;}.xm-line-box .box-hd .more{position: absolute;top: 20px;right: 0;}.uc-order-list-type a.current{color: #ff4a00;}.uc-order-list-type a{color: #333;}.uc-order-list-type .sep{margin: 0 15px;}.box-hd{position: relative;height: 50px;border-bottom: 1px solid #e2e3e5;}
</style>
<div class="">
	<div class="w_1200 mp20 clearfix">
		<!--左边栏-->
		<div class="LBanner fl w20">
			<include file="User:user_menu"/>
		</div>
		<!--左边栏-->
		<!--右边栏-->
		<div class="RBanner fr w79">
			<div class="xm-line-box uc-box">
				<div class="box-hd hide">
					<h3 class="title">
						我的订单
					</h3>
					<div class="more">
						<div class="uc-order-list-type">
							<a class="current" href="http://order.mi.com/user/order?r=87817961_t1410778176">
								全部订单
							</a>
							<span class="sep">
								|
							</span>
							<a href="http://order.mi.com/user/order/7?r=87817961_t1410778176">
								未支付订单
							</a>
							<span class="sep">
								|
							</span>
							<a href="http://order.mi.com/user/recharge?r=87817961_t1410778176">
								话费充值订单
							</a>
							<span class="sep">
								|
							</span>
							<a href="http://order.mi.com/user/order/5?r=87817961_t1410778176">
								已关闭订单
							</a>
						</div>
					</div>
				</div>
			</div>
			<!--右边对应左边栏内容-->
			<style>
			/*表格样式*/
			table {
				max-width: 100%;
				background-color: transparent;
			}
			table.orders-table {
				width: 100%;
				border: 1px solid #ccc;
				border-collapse: collapse;
				margin-top: 20px;
			}
			table.orders-table th, table.orders-table td {
				height: 40px;
				text-align: center;
				border: 1px solid #ccc;
				vertical-align: middle;
			}
			table.orders-table th {
				background: #F7F9F9;
			}
			table.orders-table td {
				height: 60px;
			}
			table.my_prifile_table td {
				height: 40px;
			}
			</style>				
				<!-- ==========订单详情页面,包括：订单状态，商品列表，费用总计，收货人信息，支付方式，其它信息========== 
						<!--订单状态-->
						<div class="xm-line-box uc-box">
							<div class="box-hd">
								<h3 class="title">
									{$lang.order_status}
								</h3>
							</div>
							<style>
							table.order_detail_table td{height:40px;}
							</style>
							<div class="">
								<table class="member-grid orders-table order_detail_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
									<tr>
										<td width="15%" align="right" >{$lang.detail_order_sn}：</td>
										<td align="left" >
											{$order.order_sn}
											<if condition="$order['extension_code'] eq 'group_buy'">
												<a href="./group_buy.php?act=view&id={$order.extension_id}" class="f6">
													<strong>{$lang.order_is_group_buy}</strong>
												</a>
											<elseif condition="$order['extension_code'] eq 'exchange_goods'"/>
												<a href="./exchange.php?act=view&id={$order.extension_id}" class="f6">
													<strong>{$lang.order_is_exchange}</strong>
												</a>
											</if>
											<a href="user.php?act=message_list&order_id={$order.order_id}" class="f6">[{$lang.business_message}]</a>
										</td>
									</tr>
									<tr>
										<td align="right" >{$lang.detail_order_status}：</td>
										<td align="left" >{$order.order_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.confirm_time}</td>
									</tr>
									<tr>
										<td align="right" >{$lang.detail_pay_status}：</td>
										<td align="left" >
											{$order.pay_status}&nbsp;&nbsp;&nbsp;&nbsp;
											<if condition="$order['order_amount'] gt 0">
												{$order.pay_online}
											</if>
											{$order.pay_time}
										</td>
									</tr>
									<tr>
										<td align="right" >{$lang.detail_shipping_status}：</td>
										<td align="left" >{$order.shipping_status}&nbsp;&nbsp;&nbsp;&nbsp;{$order.shipping_time}</td>
									</tr>		
									<if condition="$order['invoice_no']">
										<tr>
										  <td align="right" >{$lang.consignment}：</td>
										  <td align="left" >{$order.invoice_no}</td>
										</tr>
									</if>
									<if condition="$order['to_buyer']">
										<tr>
										  <td align="right" >{$lang.detail_to_buyer}：</td>
										  <td align="left" >{$order.to_buyer}</td>
										</tr>
									</if>
									<if condition="$virtual_card">
										<tr>
											<td align="right" >{$lang.virtual_card_info}：</td>
											<td colspan="3" align="left" >
											<volist name="virtual_card" id="vgoods">
												<volist name="$vgoods['info']" id="card">
													<if condition="$card['card_sn']">
														{$lang.card_sn}:<span style="color:red;">{$card.card_sn}</span>
													</if>
													<if condition="$card['card_password']">
														{$lang.card_password}:<span style="color:red;">{$card.card_password}</span>
													</if>
													<if condition="$card['end_date']">
														{$lang.end_date}:{$card.end_date}
													</if>
													<br/>
												</volist>
											</volist>
											</td>
										</tr>
									</if>
								</table>
							</div>
						</div>
						<!--订单状态-->
						<div class="blank"></div>
						<!--商品列表-->
						<div class="xm-line-box uc-box">
							<div class="box-hd">
								<h3 class="title">
									{$lang.goods_list}
								</h3>
								<div class="more">
									<div class="uc-order-list-type">
										<if condition="$allow_to_cart">
											<a href="javascript:;" onclick="returnToCart({$order.order_id})" class="f6">{$lang.return_to_cart}</a>
										</if>										
									</div>
								</div>						
							</div>
							<style>
							table.order_detail_goods_list_table td{height:40px;}
							table.fee_total_table td{height:40px;}
							table.consignee_info_table td{height:40px;}							
							table.payment_table td{height:40px;}							
							table.other_info_table td{height:40px;}							
							</style>
							<div class="">
								<table class="member-grid orders-table order_detail_goods_list_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
									<tr>
										<th width="29%" align="center" >{$lang.goods_name}</th>
										<th width="23%" align="center" >{$lang.goods_attr}</th>
										<!--<th>{$lang.market_price}</th>-->
										<th width="26%" align="center" >
											{$lang.goods_price}
											<if condition="$order['extension_code'] eq 'group_buy'">
												{$lang.gb_deposit}
											</if>
										</th>
										<th width="9%" align="center" >{$lang.number}</th>
										<th width="20%" align="center" >{$lang.subtotal}</th>
									</tr>
									<volist name="goods_list" id="goods">
									<tr>
										<td >
											<if condition="($goods['goods_id'] gt 0) and ($goods['extension_code'] neq 'package_buy')">
												<a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">
													{$goods.goods_name}
													<if condition="$goods['parent_id'] gt 0">
														<span style="color:#FF0000">（{$lang.accessories}）</span>
													<elseif condition="$goods['is_gift'] eq 1"/>
														<span style="color:#FF0000">（{$lang.largess}）</span>
													</if>
												</a>
											<elseif condition="$goods['goods_id'] gt 0 and $goods['extension_code'] eq 'package_buy'"/>
												<a href="javascript:void(0)" onclick="setSuitShow({$goods.goods_id})" class="f6">
													{$goods.goods_name}<span style="color:#FF0000;">（礼包）</span>
												</a>
												<div id="suit_{$goods.goods_id}" style="display:none">
													<volist name="$goods['package_goods_list']" id="package_goods_list">
														<a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">
															{$package_goods_list.goods_name}
														</a>
														<br/>
													</volist>
												</div>
											</if>
										</td>
										<td align="left" >{$goods.goods_attr}</td>
										<!--<td align="right">{$goods.market_price}</td>-->
										<td align="right" >{$goods.goods_price}</td>
										<td align="center" >{$goods.goods_number}</td>
										<td align="right" >{$goods.subtotal}</td>
									</tr>
									</volist>
									<tr>
										<td colspan="8" style="text-align:right; ">
											{$lang.shopping_money}
											<span style="color:#E8380D;"><if condition="$order['extension_code'] eq 'group_buy'"> {$lang.gb_deposit} </if>: {$order.formated_goods_amount}</span>
										</td>
									</tr>
								</table>
							</div>
						</div>
						<!--商品列表-->
						<!--费用总计-->
						<div class="xm-line-box uc-box">
							<div class="box-hd">
								<h3 class="title">
									{$lang.fee_total}
								</h3>			
							</div>
							<div class="">
								<table class="member-grid orders-table fee_total_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
									<tr>
										<td align="right" style="text-align:right;">
											{$lang.goods_all_price}
											<if condition="$order['extension_code'] eq 'group_buy'">
												{$lang.gb_deposit}
											</if>
											
											: {$order.formated_goods_amount}
											
											<if condition="$order['discount'] gt 0">
											- {$lang.discount}: {$order.formated_discount}
											</if>
											
											<if condition="$order['tax'] gt 0">
											+ {$lang.tax}: {$order.formated_tax}
											</if>
																	
											<if condition="$order['shipping_fee'] gt 0">
											+ {$lang.shipping_fee}: {$order.formated_shipping_fee}						
											</if>
											
											<if condition="$order['insure_fee'] gt 0">
											+ {$lang.insure_fee}: {$order.formated_insure_fee}
											</if>
											
											<if condition="$order['pay_fee'] gt 0">
											+ {$lang.pay_fee}: {$order.formated_pay_fee}
											</if>
											
											<if condition="$order['pack_fee'] gt 0">
											+ {$lang.pack_fee}: {$order.formated_pack_fee}
											</if>
											
											<if condition="$order['card_fee'] gt 0">
											+ {$lang.card_fee}: {$order.formated_card_fee}
											</if>
										</td>
									</tr>
									<tr>
										<td align="right" style="text-align:right;">
											<if condition="$order['money_paid'] gt 0">
											- {$lang.order_money_paid}: {$order.formated_money_paid}
											</if>
											
											<if condition="$order['surplus'] gt 0">
											- {$lang.use_surplus}: {$order.formated_surplus}
											</if>
											
											<if condition="$order['integral_money'] gt 0">
											- {$lang.use_integral}: {$order.formated_integral_money}
											</if>
											
											<if condition="$order['bonus']">
											- {$lang.use_bonus}: {$order.formated_bonus}
											</if>
										</td>
									</tr>
									<tr>
										<td align="right" style="text-align:right;">
										{$lang.order_amount}: {$order.formated_order_amount}					
										<if condition="$order['extension_code'] eq 'group_buy'">
											<br/>
											{$lang.notice_gb_order_amount}
										</if>
										</td>
									</tr>
									<if condition="$allow_edit_surplus">
									<tr>
										<td align="right" >
											<form action="user.php" method="post" name="formFee" id="formFee">
												{$lang.use_more_surplus}:
												<input name="surplus" type="text" size="8" value="0" style="border:1px solid #ccc;"/>{$max_surplus}
												<input type="submit" name="Submit" class="submit" value="{$lang.button_submit}" />
												<input type="hidden" name="act" value="act_edit_surplus" />
												<input type="hidden" name="order_id" value="{$smarty.get.order_id}" />
											</form>
										</td>
									</tr>
									</if>
								</table>
							</div>
						</div>
						<!--费用总计-->
						
						<!--收货人信息-->
						<div class="xm-line-box uc-box">
							<div class="box-hd">
								<h3 class="title">
									{$lang.consignee_info}
								</h3>			
							</div>
							<div class="">
								<if condition="$order['allow_update_address'] eq 1">									
									<form action="user.php" method="post" name="formAddress" id="formAddress">
										<table class="member-grid orders-table consignee_info_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
											<tr>
												<td width="15%" align="right" >{$lang.consignee_name}： </td>
												<td width="35%" align="left" ><input name="consignee" type="text"  class="inputBg" value="{$order.consignee}" size="25">
												</td>
												<td width="15%" align="right" >{$lang.email_address}： </td>
												<td width="35%" align="left" ><input name="email" type="text"  class="inputBg" value="{$order.email}" size="25" />
												</td>
											</tr>																				
											<tr>
												<td align="right" >{$lang.phone}：</td>
												<td align="left" ><input name="tel" type="text" class="inputBg" value="{$order.tel}" size="25" /></td>
												<td align="right" >{$lang.backup_phone}：</td>
												<td align="left" ><input name="mobile" type="text"  class="inputBg" value="{$order.mobile}" size="25" /></td>
											</tr>
											<if condition="$order['exist_real_goods'] eq 1">
												<tr>
													<td align="right" bgcolor="#ffffff">{$lang.detailed_address}：</td>
													<td colspan="3" align="left" bgcolor="#ffffff">
														{$order.country}&nbsp;&nbsp;&nbsp;{$order.province}&nbsp;&nbsp;&nbsp;{$order.city}&nbsp;&nbsp;&nbsp;{$order.district}&nbsp;&nbsp;{$order.address}
													</td>
												</tr>
											</if>
											<tr>
												<td colspan="4" align="center" ><input type="hidden" name="act" value="save_order_address" />
												<input type="hidden" name="order_id" value="{$order.order_id}" />
												<input type="submit" class="bnt_blue_2" value="{$lang.update_address}"  />
												</td>
											</tr>
										</table>
									</form>
								<else/>
									<table class="member-grid orders-table consignee_info_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
										<tr>
											<td width="15%" align="right" >{$lang.consignee_name}：</td>
											<td width="35%" align="left" >{$order.consignee}</td>
											<td width="15%" align="right"  >{$lang.email_address}：</td>
											<td width="35%" align="left" >{$order.email}</td>
										</tr>										
										<if condition="$order['exist_real_goods'] eq 1">
											<tr>
												<td align="right" bgcolor="#ffffff">{$lang.detailed_address}：</td>
												<td colspan="3" align="left" bgcolor="#ffffff">
													{$order.province}-{$order.city}-{$order.district}-{$order.address}													
												</td>
											</tr>
										</if>
										<if condition="$order['exist_real_goods'] eq 1">
											<tr>
											  <td align="right" bgcolor="#ffffff" >{$lang.sign_building}：</td>
											  <td align="left" bgcolor="#ffffff">{$order.sign_building} </td>
											  <td align="right" bgcolor="#ffffff" >{$lang.deliver_goods_time}：</td>
											  <td align="left" bgcolor="#ffffff">{$order.best_time}</td>
											</tr>
										</if>
										<tr>
											<td align="right" >{$lang.phone}：</td>
											<td align="left" >{$order.tel} </td>
											<td align="right" >{$lang.backup_phone}：</td>
											<td align="left" >{$order.mobile}</td>
										</tr>	
									</table>
								</if>								
							</div>
						</div>
						<!--收货人信息-->
						
						<!--支付方式-->
						<div class="xm-line-box uc-box" style="margin-bottom:50px;">
							<div class="box-hd">
								<h3 class="title">
									{$lang.payment}
								</h3>			
							</div>
							<div class="">
								<table class="member-grid orders-table payment_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
									<tr>
										<td >
											<if condition="$order['pay_id'] eq ''">
												你还没有选择支付方式,
											<else/>
												{$lang.select_payment}: {$order.pay_name}。
											</if>
											<a href="{:U('flow/payorder')}?id={$order.order_id}">去支付订单</a>。&nbsp;&nbsp;&nbsp;
											{$lang.order_amount}: <strong>{$order.formated_order_amount}</strong><br />
											{$order.pay_desc}
										</td>
									</tr>
									<if condition="$payment_list">
										<tr>
											<td  align="right">											
												<form name="payment" method="post" action="user.php">
													{$lang.change_payment}:
													<select name="pay_id">
													<volist name="payment_list" id="payment">							
														<option value="{$payment.pay_id}">
															{$payment.pay_name}({$lang.pay_fee}:{$payment.format_pay_fee})
														</option>
													</volist>
													</select>
													
													<input type="hidden" name="act" value="act_edit_payment" />
													<input type="hidden" name="order_id" value="{$order.order_id}" />
													<input type="submit" name="Submit" class="submit" value="{$lang.button_submit}" />
												</form>											
											</td>
										</tr>
									</if>
								</table>
							</div>
						</div>
						<!--支付方式-->
						
						<!--其它信息-->
						<div class="xm-line-box uc-box hide">
							<div class="box-hd">
								<h3 class="title">
									{$lang.other_info}
								</h3>			
							</div>
							<div class="">
								<table class="member-grid orders-table other_info_table" width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
									<if condition="$order['shipping_id'] gt 0">			
										<tr>
											<td width="15%" align="right" >{$lang.shipping}：</td>
											<td colspan="3" width="85%" align="left" >{$order.shipping_name}</td>
										</tr>
									</if>
									<tr>
										<td width="15%" align="right" >{$lang.payment}：</td>
										<td colspan="3" align="left" >{$order.pay_name}</td>
									</tr>
									<if condition="$order['pack_name']">
									<!--  是否使用包装 -->
										<tr>
										<td width="15%" align="right" >{$lang.use_pack}：</td>
										<td colspan="3" align="left" >{$order.pack_name}</td>
										</tr>
									</if>
									
									<if condition="$order['card_name']">
									<!--  是否使用贺卡 -->
										<tr>
										<td width="15%" align="right" >{$lang.use_card}：</td>
										<td colspan="3" align="left" >{$order.card_name}</td>
										</tr>
									</if>
									
									<if condition="$order['card_message']">
									<!--  是否使用贺卡 -->
										<tr>
										<td width="15%" align="right" >{$lang.bless_note}：</td>
										<td colspan="3" align="left" >{$order.card_message}</td>
										</tr>
									</if>
									
									<if condition="$order['integral'] gt 0">
									<!--  是否使用积分 -->
										<tr>
											<td width="15%" align="right" >{$lang.use_integral}：</td>
											<td colspan="3" align="left" >{$order.integral}</td>
										</tr>
									</if>
									
									<if condition="$order['inv_payee'] and $order['inv_content']">
									<!--  是否开发票 -->
										<tr>
											<td width="15%" align="right" >{$lang.invoice_title}：</td>
											<td width="36%" align="left" >{$order.inv_payee}</td>
											<td width="19%" align="right" >{$lang.invoice_content}：</td>
											<td width="25%" align="left" >{$order.inv_content}</td>
										</tr>
									</if>
									
									<if condition="$order['postscript']">
									<!-- 是否有订单附言 -->
										<tr>
											<td width="15%" align="right" >{$lang.order_postscript}：</td>
											<td colspan="3" align="left" >{$order.postscript}</td>
										</tr>
									</if>
									<tr>
										<td width="15%" align="right" >{$lang.booking_process}：</td>
										<td colspan="3" align="left" >{$order.how_oos_name}</td>
									</tr>
								</table>
							</div>
						</div>
				<!--#订单详情页 end-->				
			<!--右边对应左边栏内容-->
		</div>
		<!--右边栏-->
	</div>
</div>
<!--用户中心导航-->

<div class="space100" style="height:100px;"></div>

<include file="Library:service"/>
<include file="Library:footer"/>

